export function showClock() {
  // 1. 获取当前时间
  var time = new Date();
  // document.write(time);
  var year = time.getFullYear();
  // document.write(year);
  var month = time.getMonth() + 1;
  // document.write(month);

  var day = time.getDate();
  // var day1 = time.getDay();
  // document.write(day1);

  var hours = time.getHours();
  // document.write(hours);

  var minutes = time.getMinutes();
  // document.write(minutes);

  var seconds = time.getSeconds();

  return (
    year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds
  );
}
